{include file="header.html"}
<style>
.formbtn1 {
    display: inline-block !important;
    height: 32px !important;
    margin: 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: 0;
    background-image: none;
    background-color: #fff;
    font-size: 14px;
    font-weight: 400;
    line-height: 30px;
    color: #1a1a1a;
    text-align: center;
    vertical-align: top;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -o-box-sizing: border-box;
    background-color: #0ae;
    border-color: #0ae;
    color: #fff;
    text-shadow: none;
}
.formbtn1:hover{
	color: #fff;
}
</style>
<script type="text/javascript">
//<!CDATA[
$(function(){
  
    
    $("#search").click(function(){
    	$("#act").val("index");

    	$("#form1").submit();
    });
});
//]]>
</script>

<div id="rightTop">
	<p>集卡货单</p>
	<ul class="subnav">
		<li><span>{$lang.manage}</span>
		</li>
		<li><a class="btn1" href="index.php?app=goodstrunk&amp;act=add">{$lang.add}</a>
		</li>
	</ul>
</div>
<div class="mrightTop">
	<div class="fontl">
		<form method="get">
			<div class="left">
		
                    <input type="hidden" name="app" value="goodstrunk" />
                <input type="hidden" name="act" value="index" />
             	 	货单编码:
	                <input class="queryInput" type="text" name="g_code" value="{$smarty.get.g_code}" />
	                提单号:
	                <input class="queryInput" type="text" name="g_awb_code" value="{$smarty.get.g_awb_code}" />
	                  船名:
	                <input class="queryInput" type="text" name="g_ship" value="{$smarty.get.g_ship}" />
	                   航次:
	                <input class="queryInput" type="text" name="g_voyage" value="{$smarty.get.g_voyage}" />
					
                <input type="submit" class="formbtn" value="{$lang.query}" />
          
          <input class="formbtn1 batchButton" type="button" style="margin-left: 20px;"
				value="选择发车" name="id" uri="index.php?app=goodstrunk&act=addbygoodscheck"
				presubmit="confirm('确认发车吗？');" /> 
				
				<a class="formbtn1" type="button" style="margin-left: 20px;" id="all"
				 href="javascript:drop_confirm('确认全部发车吗？', 'index.php?app=goodstrunk&act=addbygoodsall');">全部发车</a> 
			</div>
		</form>
	</div>
	<div class="fontr">{include file=page.top.html}</div>
</div>
<div class="tdare">
	<table width="100%" cellspacing="0" class="dataTable">
		<!--{if $auth}-->
		<tr class="tatr1">
			<td width="20" class="firstCell"><input type="checkbox"
				class="checkall" />
			</td>
		<td>状态</td>
		<td>货单编码</td>
		
			<td align="left">船名</td>
			<td>航次</td>
			<td>提单号</td>
			<td>下单人</td>
			<td>下单时间</td>
			
			<td></td>
		</tr>
		<!--{/if}-->
		<!--{foreach from=$auth item=w}-->
		<tr class="tatr2">
		    <td class="firstCell"> <input type="checkbox" class="checkitem" value="{$w.g_tid}"/></td>
		    <td>{$w.g_status}</td>
			<td>{$w.g_code}</td>
			
			<td>{$w.g_ship|escape}</td>
			<td>{$w.g_voyage}</td>
			<td>{$w.g_awb_code}</td>
			<td>{$w.user_name}</td>
			<td>{if $w.g_opdate}{$w.g_opdate|date:Y-m-d H:i}{else}{/if}</td>
		
            <td style="text-align: left;width: 100px;";>
				{if !$w.ws_tid}<a href="index.php?app=goodstrunk&amp;act=edit&amp;id={$w.g_tid}" >编辑</a> |{else}
           <a href="index.php?app=goodstrunk&amp;act=edit&amp;id={$w.g_tid}">查看</a>
            {/if}
           
			<!--{if $w.g_volume > 0}  -->
         	 <a href=""> 生成运单</a>
			<!--{/if}  -->
			 {if !$w.ws_tid}<a name="drop" href="javascript:drop_confirm('{$lang.drop_confirm}', 'index.php?app=goodstrunk&amp;act=drop&amp;id={$w.g_tid}');">{$lang.drop}</a>{/if}
            </td>
		</tr>
		<!--{foreachelse}-->
		<tr class="no_data">
			<td colspan="7">{$lang.no_data}</td>
		</tr>
		<!--{/foreach}-->
	</table>
	<!--{if $auth}-->
	<div id="dataFuncs">
		<div class="pageLinks">{include file=page.bottom.html}</div>
		<div id="batchAction" class="left paddingT15" style="padding-top: 10px;">
			&nbsp;&nbsp; <input class="formbtn batchButton" type="button"
				value="{$lang.drop}" name="id" uri="index.php?app=goodstrunk&act=drop"
				presubmit="confirm('{$lang.drop_confirm}');" /> &nbsp;&nbsp;
		</div>
	</div>
	<div class="clear"></div>
	<!--{/if}-->
</div>
{include file="footer.html"}